home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / System 7 / AppleScript / Finder Scripting Toolkt 1.0.sit / Finder Scripting Toolkit 1.0 / fwin coercion osax / alis2fwin.c < prev    next >
MacBinary  |  1993-07-20  |  2.0 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: alis2fwin.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Jul 20 10:58:13 1993, modified Tue Jul 20 10:58:13 1993, creator 'MPS ', type ASCII, 1320 bytes "alis2fwin.c" , at 0x5a8 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 61 6c 69 73 32 66 | 77 69 6e 2e 63 00 00 00 |..alis2f|win.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 05 28 00 | 00 01 ac a8 71 b8 85 a8 |......(.|....q...|
|00000060| 71 b8 85 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |q.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 10 90 00 00 |........|........|
|00000080| 2f 2a 0d 0d 09 09 46 20 | 57 20 49 20 4e 20 20 20 |/*....F |W I N |
|00000090| 43 20 4f 20 45 20 52 20 | 43 20 49 20 4f 20 4e 20 |C O E R |C I O N |
|000000a0| 20 20 4f 20 53 20 41 20 | 58 0d 09 09 0d 09 09 56 | O S A |X......V|
|000000b0| 65 72 73 69 6f 6e 20 31 | 2e 30 0d 09 09 46 72 65 |ersion 1|.0...Fre|
|000000c0| 65 77 61 72 65 20 62 79 | 20 44 61 6e 69 65 6c 20 |eware by| Daniel |
|000000d0| 52 61 6e 73 6f 6e 0d 09 | 09 0d 09 09 54 68 69 73 |Ranson..|....This|
|000000e0| 20 6f 73 61 78 20 70 65 | 72 66 6f 72 6d 73 20 63 | osax pe|rforms c|
|000000f0| 6f 65 72 63 69 6f 6e 73 | 20 74 6f 20 74 68 65 20 |oercions| to the |
|00000100| 46 69 6e 64 65 72 57 69 | 6e 64 6f 77 20 28 66 77 |FinderWi|ndow (fw|
|00000110| 69 6e 29 20 72 65 63 6f | 72 64 0d 09 09 74 79 70 |in) reco|rd...typ|
|00000120| 65 20 75 73 65 64 20 62 | 79 20 46 69 6e 64 65 72 |e used b|y Finder|
|00000130| 20 65 76 65 6e 74 73 2e | 0d 09 09 0d 09 09 54 68 | events.|......Th|
|00000140| 65 72 65 20 61 72 65 20 | 61 63 74 75 61 6c 6c 79 |ere are |actually|
|00000150| 20 74 68 72 65 65 20 6f | 73 61 78 2e 20 54 68 69 | three o|sax. Thi|
|00000160| 73 20 6f 6e 65 20 63 6f | 6e 76 65 72 74 73 20 61 |s one co|nverts a|
|00000170| 6c 69 61 73 65 73 2e 0d | 0d 2a 2f 0d 0d 23 69 6e |liases..|.*/..#in|
|00000180| 63 6c 75 64 65 20 3c 54 | 79 70 65 73 2e 68 3e 0d |clude <T|ypes.h>.|
|00000190| 23 69 6e 63 6c 75 64 65 | 20 3c 4d 65 6d 6f 72 79 |#include| <Memory|
|000001a0| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 41 6c |.h>.#inc|lude <Al|
|000001b0| 69 61 73 65 73 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |iases.h>|.#includ|
|000001c0| 65 20 3c 41 70 70 6c 65 | 45 76 65 6e 74 73 2e 68 |e <Apple|Events.h|
|000001d0| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 41 45 52 65 |>.#inclu|de <AERe|
|000001e0| 67 69 73 74 72 79 2e 68 | 3e 0d 0d 73 74 72 75 63 |gistry.h|>..struc|
|000001f0| 74 20 46 69 6e 64 65 72 | 57 69 6e 64 6f 77 7b 0d |t Finder|Window{.|
|00000200| 09 6c 6f 6e 67 09 09 77 | 69 6e 64 6f 77 54 79 70 |.long..w|indowTyp|
|00000210| 65 3b 0d 09 44 65 73 63 | 54 79 70 65 09 61 6c 69 |e;..Desc|Type.ali|
|00000220| 61 73 54 79 70 65 3b 0d | 09 6c 6f 6e 67 09 09 61 |asType;.|.long..a|
|00000230| 6c 69 61 73 4c 65 6e 67 | 74 68 3b 0d 09 41 6c 69 |liasLeng|th;..Ali|
|00000240| 61 73 52 65 63 6f 72 64 | 09 61 6c 69 61 73 3b 0d |asRecord|.alias;.|
|00000250| 7d 3b 0d 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |};..type|def stru|
|00000260| 63 74 20 46 69 6e 64 65 | 72 57 69 6e 64 6f 77 20 |ct Finde|rWindow |
|00000270| 46 69 6e 64 65 72 57 69 | 6e 64 6f 77 3b 0d 0d 70 |FinderWi|ndow;..p|
|00000280| 61 73 63 61 6c 20 4f 53 | 45 72 72 20 41 4c 49 53 |ascal OS|Err ALIS|
|00000290| 32 46 57 49 4e 28 09 44 | 65 73 63 54 79 70 65 09 |2FWIN(.D|escType.|
|000002a0| 66 72 6f 6d 54 79 70 65 | 2c 0d 09 09 09 09 09 09 |fromType|,.......|
|000002b0| 50 74 72 09 09 09 64 61 | 74 61 50 74 72 2c 0d 09 |Ptr...da|taPtr,..|
|000002c0| 09 09 09 09 09 53 69 7a | 65 09 09 64 61 74 61 53 |.....Siz|e..dataS|
|000002d0| 69 7a 65 2c 0d 09 09 09 | 09 09 09 44 65 73 63 54 |ize,....|...DescT|
|000002e0| 79 70 65 09 74 6f 54 79 | 70 65 2c 0d 09 09 09 09 |ype.toTy|pe,.....|
|000002f0| 09 09 6c 6f 6e 67 09 09 | 72 65 66 43 6f 6e 2c 0d |..long..|refCon,.|
|00000300| 09 09 09 09 09 09 41 45 | 44 65 73 63 09 09 2a 72 |......AE|Desc..*r|
|00000310| 65 73 75 6c 74 29 0d 7b | 0d 23 70 72 61 67 6d 61 |esult).{|.#pragma|
|00000320| 20 75 6e 75 73 65 64 28 | 66 72 6f 6d 54 79 70 65 | unused(|fromType|
|00000330| 2c 20 74 6f 54 79 70 65 | 2c 20 72 65 66 43 6f 6e |, toType|, refCon|
|00000340| 29 0d 0d 09 46 69 6e 64 | 65 72 57 69 6e 64 6f 77 |)...Find|erWindow|
|00000350| 09 2a 2a 68 46 77 69 6e | 3b 0d 09 53 69 7a 65 09 |.**hFwin|;..Size.|
|00000360| 09 09 73 69 7a 48 3b 0d | 09 4f 53 45 72 72 09 09 |..sizH;.|.OSErr..|
|00000370| 09 65 72 72 3b 0d 09 0d | 09 2f 2a 20 41 6c 6c 6f |.err;...|./* Allo|
|00000380| 63 61 74 65 20 74 68 65 | 20 73 74 72 75 63 74 75 |cate the| structu|
|00000390| 72 65 20 2a 2f 0d 09 73 | 69 7a 48 20 3d 20 73 69 |re */..s|izH = si|
|000003a0| 7a 65 6f 66 28 46 69 6e | 64 65 72 57 69 6e 64 6f |zeof(Fin|derWindo|
|000003b0| 77 29 20 2b 20 64 61 74 | 61 53 69 7a 65 20 2d 20 |w) + dat|aSize - |
|000003c0| 73 69 7a 65 6f 66 28 41 | 6c 69 61 73 52 65 63 6f |sizeof(A|liasReco|
|000003d0| 72 64 29 3b 0d 09 68 46 | 77 69 6e 20 3d 20 28 46 |rd);..hF|win = (F|
|000003e0| 69 6e 64 65 72 57 69 6e | 64 6f 77 2a 2a 29 4e 65 |inderWin|dow**)Ne|
|000003f0| 77 48 61 6e 64 6c 65 28 | 73 69 7a 48 29 3b 0d 09 |wHandle(|sizH);..|
|00000400| 69 66 20 28 68 46 77 69 | 6e 20 3d 3d 20 30 29 20 |if (hFwi|n == 0) |
|00000410| 72 65 74 75 72 6e 20 65 | 72 72 41 45 43 6f 65 72 |return e|rrAECoer|
|00000420| 63 69 6f 6e 46 61 69 6c | 3b 0d 09 0d 09 2f 2a 20 |cionFail|;..../* |
|00000430| 46 69 6c 6c 20 69 6e 20 | 66 69 65 6c 64 73 20 2a |Fill in |fields *|
|00000440| 2f 0d 09 28 2a 2a 68 46 | 77 69 6e 29 2e 77 69 6e |/..(**hF|win).win|
|00000450| 64 6f 77 54 79 70 65 20 | 3d 20 30 3b 0d 09 28 2a |dowType |= 0;..(*|
|00000460| 2a 68 46 77 69 6e 29 2e | 61 6c 69 61 73 54 79 70 |*hFwin).|aliasTyp|
|00000470| 65 20 3d 20 74 79 70 65 | 41 6c 69 61 73 3b 0d 09 |e = type|Alias;..|
|00000480| 28 2a 2a 68 46 77 69 6e | 29 2e 61 6c 69 61 73 4c |(**hFwin|).aliasL|
|00000490| 65 6e 67 74 68 20 3d 20 | 64 61 74 61 53 69 7a 65 |ength = |dataSize|
|000004a0| 3b 0d 09 42 6c 6f 63 6b | 4d 6f 76 65 28 64 61 74 |;..Block|Move(dat|
|000004b0| 61 50 74 72 2c 20 26 28 | 28 2a 2a 68 46 77 69 6e |aPtr, &(|(**hFwin|
|000004c0| 29 2e 61 6c 69 61 73 29 | 2c 20 64 61 74 61 53 69 |).alias)|, dataSi|
|000004d0| 7a 65 29 3b 0d 09 0d 09 | 2f 2a 20 43 72 65 61 74 |ze);....|/* Creat|
|000004e0| 65 20 74 68 65 20 64 65 | 73 63 72 69 70 74 6f 72 |e the de|scriptor|
|000004f0| 20 2a 2f 0d 09 4d 6f 76 | 65 48 48 69 28 28 48 61 | */..Mov|eHHi((Ha|
|00000500| 6e 64 6c 65 29 68 46 77 | 69 6e 29 3b 0d 09 48 4c |ndle)hFw|in);..HL|
|00000510| 6f 63 6b 28 28 48 61 6e | 64 6c 65 29 68 46 77 69 |ock((Han|dle)hFwi|
|00000520| 6e 29 3b 0d 09 65 72 72 | 20 3d 20 41 45 43 72 65 |n);..err| = AECre|
|00000530| 61 74 65 44 65 73 63 28 | 74 79 70 65 46 69 6e 64 |ateDesc(|typeFind|
|00000540| 65 72 57 69 6e 64 6f 77 | 2c 20 28 50 74 72 29 28 |erWindow|, (Ptr)(|
|00000550| 2a 68 46 77 69 6e 29 2c | 20 73 69 7a 48 2c 20 72 |*hFwin),| sizH, r|
|00000560| 65 73 75 6c 74 29 3b 0d | 09 0d 09 2f 2a 20 43 6c |esult);.|.../* Cl|
|00000570| 65 61 6e 20 75 70 20 2a | 2f 0d 09 44 69 73 70 6f |ean up *|/..Dispo|
|00000580| 73 65 48 61 6e 64 6c 65 | 28 28 48 61 6e 64 6c 65 |seHandle|((Handle|
|00000590| 29 68 46 77 69 6e 29 3b | 0d 09 72 65 74 75 72 6e |)hFwin);|..return|
|000005a0| 20 65 72 72 3b 0d 7d 0d | 00 00 00 00 00 00 00 00 | err;.}.|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000610| 00 14 67 0a 0c 46 fe 62 | 67 04 70 00 60 02 70 01 |..g..F.b|g.p.`.p.|
|00000620| 4c ee 18 e8 fb e2 4e 5e | 4e 75 00 00 01 31 00 00 |L.....N^|Nu...1..|
|00000630| 0b 61 6c 69 73 32 66 77 | 69 6e 2e 63 02 00 00 00 |.alis2fw|in.c....|
|00000640| 50 61 72 74 53 49 54 78 | 00 00 00 00 00 00 00 00 |PartSITx|........|
|00000650| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 a9 81 3e 89 00 00 | 00 00 00 00 01 ac 00 1e |....>...|........|
|00000680| 66 00 01 fe 20 2c 00 24 | 04 80 66 73 6d 6e 67 00 |f... ,.$|..fsmng.|
|00000690| 01 88 04 80 08 00 07 02 | 67 00 01 14 04 80 06 f3 |........|g.......|
|000006a0| ee 04 67 0e 04 80 00 00 | 00 f2 67 00 00 96 60 00 |..g.....|..g...`.|
|000006b0| 01 d0 20 2c 00 20 04 80 | 47 52 46 4c 67 12 04 80 |.. ,. ..|GRFLg...|
|000006c0| 05 f3 00 00 67 0a 04 80 | 08 0e 00 00 66 00 01 b2 |....g...|....f...|
|000006d0| 2f 2c 00 12 70 64 2f 00 | 4e ad 07 8a 26 40 20 0b |/,..pd/.|N...&@ .|
|000006e0| 50 8f 67 34 20 0b 67 2a | 20 0b 67 1a 20 0b 67 0a |P.g4 .g*| .g. .g.|
|000006f0| 20 53 20 2d ff 36 20 80 | 60 02 70 00 20 53 20 2d | S -.6 .|`.p. S -|
|00000700| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 73 63 09 |...H..Mo|naco.sc.|
|00000710| 09 66 72 6f 6d 44 65 73 | 63 2c 0d 09 09 09 09 09 |.fromDes|c,......|
|00000720| 09 09 44 65 73 63 00 06 | 00 04 00 2a 00 24 02 f1 |..Desc..|...*.$..|
|00000730| 02 20 00 3c 00 24 01 8d | 02 3d a8 71 72 34 00 00 |. .<.$..|.=.qr4..|
|00000740| 00 30 00 00 00 30 00 00 | 00 00 01 00 00 00 00 1e |.0...0..|........|
|00000750| 00 2a 00 24 02 f1 02 20 | 00 3c 00 24 01 8d 02 3d |.*.$... |.<.$...=|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 e6 |.....n..|.n...>..|
|00000780| bb f8 1a d0 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |........|.>..MPSR|
|00000790| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 03 f0 ff ff 00 00 00 4c | 00 e9 16 7c 00 00 00 00 |.......L|...|....|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+